package cn.jiyun.client;

import cn.jiyun.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient("userservice")
public interface UserClient {
    @GetMapping("/user/{id}")
    User findByid(@PathVariable Long id);

    @GetMapping("/user/all")
    List<User> all();

    @GetMapping("/user/del")
    void del(Long id);


}
